#!/usr/bin/env python

# Lucid is (C) Copyright 2006-2007 by Infiscape Corporation
#
# This file is part of Lucid, a PyOpenSG example application.
#
# Lucid is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# Lucid is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program.  If not, see <http://www.gnu.org/licenses/>.

import sys
from PyQt4 import QtCore, QtGui

class Ui_Form(object):
   def setupUi(self, Form):
      Form.setObjectName("Form")
      Form.resize(QtCore.QSize(QtCore.QRect(0,0,120,26).size()).expandedTo(Form.minimumSizeHint()))

      self.hboxlayout = QtGui.QHBoxLayout(Form)
      self.hboxlayout.setMargin(0)
      self.hboxlayout.setSpacing(0)
      self.hboxlayout.setObjectName("hboxlayout")

      self.mLabel = QtGui.QLabel(Form)
      self.mLabel.setObjectName("mLabel")
      self.hboxlayout.addWidget(self.mLabel)

      spacerItem = QtGui.QSpacerItem(40,5,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
      self.hboxlayout.addItem(spacerItem)

      self.mEditBtn = QtGui.QToolButton(Form)
      self.mEditBtn.setIcon(QtGui.QIcon(":/icons/data/icons/edit_further_16.png"))
      self.mEditBtn.setObjectName("mEditBtn")
      self.hboxlayout.addWidget(self.mEditBtn)

      self.retranslateUi(Form)
      QtCore.QMetaObject.connectSlotsByName(Form)

   def retranslateUi(self, Form):
      Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
      self.mLabel.setText(QtGui.QApplication.translate("Form", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
      self.mEditBtn.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
   app = QtGui.QApplication(sys.argv)
   Form = QtGui.QWidget()
   ui = Ui_Form()
   ui.setupUi(Form)
   Form.show()
   sys.exit(app.exec_())
